#include<stdio.h>
int main()
{
	int a = 32;
	int count = 0;
	while (a >= 1 && a % 2 == 0)
	{
		a = a / 2;
		count++;
	}
	if (a == 1)
	{
		printf("Yes\n");
		printf("%d", count);
	}
	else
	{
		printf("No");
	}


	return 0;
}